using System;
using System.Collections.Generic;
using System.Text;
using NetSpider.Retrieval;

namespace NetSpider
{
    public class RetrievalException : Exception
    {
        private string _source;
        private string _message;

        /// <summary>
        /// 
        /// </summary>
        /// <param name="source">The source of the exception.</param>
        /// <param name="message">The message.</param>
        public RetrievalException(IRetriever source, string message)
        {
            _source = source.Name;
            _message = message;
        }

        public override string Source
        {
            get { return _source; }
        }

        public override string Message
        {
            get { return _message; }
        }
    }
}
